﻿using System;
using System.Collections.Generic;
using System.Data.Objects.DataClasses;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace ATM_Banking_Service.Service
{
    [ServiceContract]
    public interface IATM
    {
        [OperationContract(Name = "Login")]
        string Login(string customerId, string pin);

        [OperationContract(Name = "Logout")]
        bool Logout(string token);

        [OperationContract(Name = "Withdraw")]
        int Withdraw(string token, long amount);

        [OperationContract(Name = "Deposit")]
        int Deposit(string token, long amount);

        [OperationContract(Name = "Transfer")]
        int Transfer(string token, string receiverId, long amount);

        [OperationContract]
        string ShowBalance(string token);

        [OperationContract]
        string GetError(int errorCode);

        [OperationContract]
        bool BlockAccount(string id);
    }
}
